﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ePioneer_ep_pioneer_content : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) { 
            CMSModel.CMSEntities dal = DAL.DBManager.GetCmsEmtity();
            rptep_pioneer_c.DataSource = dal.ePioneer_Content;
            rptep_pioneer_c.DataBind();
        }
    }
    /// <summary>
    /// 返回类型名称
    /// </summary>
    /// <param name="obj">typeid</param>
    /// <returns></returns>
    public string GetEp_pioneer_type(object obj) {
        CMSModel.CMSEntities dal = DAL.DBManager.GetCmsEmtity();
        int typeid = int.Parse(obj.ToString());
        return dal.ePioneer_Type.First(x => x.id == typeid).name;
    }
}